{% extends "myadmin/base.html" %}


{% block mainbody %}

<link rel="stylesheet" type="text/css" href="/ueditor/UE/third-party/SyntaxHighlighter/shCoreDefault.css">
<script type="text/javascript" src="/ueditor/UE/third-party/SyntaxHighlighter/shCore.js"></script>
<script type="text/javascript" src="/ueditor/UE/ueditor.config.js"></script>
<script type="text/javascript" src="/ueditor/UE/ueditor.all.min.js"></script>
<script type="text/javascript" src="/ueditor/UE/lang/zh-cn/zh-cn.js"></script>

<section class="content-header">
      <h1>
        学员案例管理
      </h1>
</section>


<section class="content">

	<div class="box box-primary">
	            <div class="box-header with-border">
	              <h3 class="box-title">学员案例</h3>
	            </div>
	            <!-- /.box-header -->
	            <!-- form start -->
	            <form role="form" action="{% url 'myadmin_article_student_update' article.id %}" method="post" enctype="multipart/form-data">
	            	{% csrf_token %}
	            <input type="hidden" name="oldpicname" value="{{ article.pic_url }}"/>
	              <div class="box-body">
	                  <div class="form-group">
	                    <label for="exampleInputName1">案例名称</label>
	                    <input type="text" name="article_name" class="form-control" id="exampleInputName1" value="{{article.name}}" disabled>
	                  </div>
	                   <div class="form-group">
	                    <label class="control-label" for="input01">案例图片</label>
	                    <div class="controls">
	                        <input type="file" name="pic" class="input-xlarge" id="input01"/>
	                    </div>
	                    <img src="/static/article/{{ article.pic_url }}" width="60"/>
	                   </div>

	                  <div class="form-group">
	                    <label for="exampleInputClicknum1">点击量</label>
	                    <input type="number" name="clicknum" class="form-control" id="exampleInputClicknum1" value="{{article.clicknum}}">
	                  </div>

	                  <div class="am-form-group">
                      <label for="user-intro" class="am-u-sm-3 am-form-label">案例图文详情</label>
                      <div class="am-u-sm-9">
                          <!-- <textarea name="descr" class="" rows="10" id="user-intro" placeholder="请输入商品简介"></textarea> -->
                          <!-- <script id="editor" type="text/plain" style="width:100%;height:500px;"></script> -->
                          <script id="editor" name="content" type="text/plain" style="height:500px;">{{ article.content|safe }}</script>
                      </div>
                  </div>

	              </div>
	              <!-- /.box-body -->

	              <div class="box-footer">
	                <button type="submit" class="btn btn-primary">Submit</button>
	              </div>
	            </form>
	</div>
</section>

    <script type="text/javascript">
        var ue = UE.getEditor('editor');
        SyntaxHighlighter.all();
    </script>
{% endblock %}